package com.huaxiafinance.management.dto.request;

import com.huaxiafinance.management.util.DateUtil;

import java.util.Date;

public class QueryServiceChargeLogDto {
    private Integer page;

    private Integer rows;

    private String start;

    private String end;

    private String name;

    private Date startDate;

    private Date endDate;

    private Date getStartDate() throws Exception {

        return (this.start==null || this.start==""?null: DateUtil.stringToDate("yyyy/MM/dd",this.start));
    }
    private Date getEndDate() throws Exception{
        return (this.end==null || this.end==""?null: DateUtil.stringToDate("yyyy/MM/dd",this.end));
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }
}
